<?php if(isset($buttons) && is_array($buttons)): ?>

	<?php foreach($buttons as $button ): ?>
	<?php 
		$button = explode('#',$button);
	?>
		<button type="button" name="btnAction" value="<?php echo $button[0];?>" class="button" id="<?php echo convert_accented_characters($button[0]);?>" onclick="javascript:return <?php echo $button[1];?>">
			<span>
				<?php echo $button[0];?>
			</span>
		</button>
	<?php endforeach; ?>

<?php endif; ?>
